<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Test extends REST_Controller {

    function __construct(){  
        
        parent::__construct();
         $this->vdata['ReturnCode'] = '0011';
        $this->vdata['Msg'] = '未知错误';
        $this->vdata['Secure'] = JSON_SECURE; 
        
    }

    
     public function index_get() {
        $this->vdata['ReturnCode'] = '200';
        $this->vdata['ReturnInfo'] = '获取成功';
        $this->vdata['Secure'] = JSON_SECURE;
        $this->vdata['Content2'] = array('nick_name'=>'你好','password'=>'111111');
        $this->vdata['Content'] = array('Name'=>'你好','Password'=>'111111');
        $this->response($this->vdata);
     
    }
     public function index_post() {
       // print_r($_POST);
        $this->vdata['ReturnCode'] = '200';
        $this->vdata['ReturnInfo'] = '获取成功1';
        $this->vdata['Secure'] = JSON_SECURE;
        $this->vdata['Content2'] = array('nick_name'=>'你好','password1'=>'111111','password2'=>'111111','password3'=>'111111','password4'=>'111111','password'=>'111111','password'=>'222');
        $this->vdata['Content'] = array('Name'=>'你好','Password'=>'111111');
        $this->response($this->vdata);
    }

}